﻿@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/SystemManage/SysOperationLog/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
		var submitUrl = "Insert";
        if (!!keyValue) {
            submitUrl = "Update";
        }
        $.submitForm({
            url: "/SystemManage/SysOperationLog/"+submitUrl+"?keyValue=" + keyValue,
            param: $("#form1").formSerialize(),
            success: function () {
                $.currentWindow().$("#gridList").trigger("reloadGrid");
            }
        });
		return false;
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;" class="container">
        <div class="form">


            <div class="input-group">
                <span class="input-group-addon">日志主键</span>
                <div class="Value">
                    <input id="Id" name="Id" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">日期</span>
                <div class="Value">
                    <input id="Date" name="Date" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">用户名</span>
                <div class="Value">
                    <input id="Account" name="Account" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">姓名</span>
                <div class="Value">
                    <input id="NickName" name="NickName" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">类型</span>
                <div class="Value">
                    <input id="Type" name="Type" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">IP地址</span>
                <div class="Value">
                    <input id="IPAddress" name="IPAddress" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">IP所在城市</span>
                <div class="Value">
                    <input id="IPAddressName" name="IPAddressName" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">系统模块Id</span>
                <div class="Value">
                    <input id="ModuleId" name="ModuleId" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">系统模块</span>
                <div class="Value">
                    <input id="ModuleName" name="ModuleName" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">结果</span>
                <div class="Value">
                    <input id="Result" name="Result" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">描述</span>
                <div class="Value">
                    <input id="Description" name="Description" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">创建时间</span>
                <div class="Value">
                    <input id="CreatorTime" name="CreatorTime" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">创建用户</span>
                <div class="Value">
                    <input id="CreatorUserId" name="CreatorUserId" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">出错类</span>
                <div class="Value">
                    <input id="Logger" name="Logger" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">位置行</span>
                <div class="Value">
                    <input id="Line" name="Line" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />
            <div class="input-group">
                <span class="input-group-addon">异常信息</span>
                <div class="Value">
                    <input id="Exception" name="Exception" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />

        </div>
    </div>
</form>







